package com.infore.siteManagement.PlatformInvocationServices.remoteService;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.infore.siteManagement.PlatformInvocationServices.remoteService.Impl.IRemoteControllerServiceFallbackFactory;
import com.infore.siteManagement.util.ResultEntity;

@FeignClient(value = "RemoteControl-Service" ,fallbackFactory = IRemoteControllerServiceFallbackFactory.class)
public interface IRemoteControlService {
	
	@GetMapping(value = "RemoteControl-Service/outside/protocolDataIds")
	ResultEntity protocolsInfo(@RequestParam("protocolDataIds") List<String> protocolDataIds);
	
	@RequestMapping(value = "RemoteControl-Service/outside/equipmentIds", method = RequestMethod.GET)
	public ResultEntity getInstructions(@RequestParam("equipmentIds") List<String> equipmentIds);
}